#version 450

layout(location = 0) in vec3 position;
layout(location = 1) in vec4 color;
layout(location = 2) in vec2 uv;

layout(set = 1, binding = 0) uniform MVP {
	mat4 model;
	mat4 view;
	mat4 proj;
	vec2 offset;
};
layout(set = 1, binding = 1) uniform DynamicModel {
	mat4 dynModel;
};

layout(location = 0) out vec4 fragColor;
layout(location = 1) out vec2 fragUV;

void main() {
	fragColor = color;
	fragUV = uv;
	gl_Position = proj * view * model * dynModel * vec4(position, 1.0);
}